package service;

import dao.BooksDaoImpl;
import entity.Books;

import java.util.List;

public class BooksServiceImpl {
    BooksDaoImpl booksDao=new BooksDaoImpl();

    public List<Books> list(){
        return booksDao.list();
    }

    public int add(Books books){
        return booksDao.add(books);
    }

    public int delete(int id){
        return booksDao.delete(id);
    }
}
